<template>
    <div class="box">
        <el-card class="box-card">
            <h1>登录</h1>
            <el-form
                :label-position="labelPosition"
                label-width="100px"
                :model="formLabelAlign"
                style="max-width: 460px"
            >
                <el-form-item label="用户名">
                <el-input v-model="formLabelAlign.name" />
                </el-form-item>
                <el-form-item label="密码">
                <el-input v-model="formLabelAlign.region" />
                </el-form-item>
                <el-form-item label="验证码">
                <el-input v-model="formLabelAlign.type" />
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" size=large>登录</el-button>
                </el-form-item>
            </el-form>
        </el-card>
    </div>
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue'
import type { FormProps } from 'element-plus'

const labelPosition = ref<FormProps['labelPosition']>('right')

const formLabelAlign = reactive({
  name: '',
  region: '',
  type: '',
})
</script>

<style scoped>
.box{
    width: 100%;
    height: 100vh;
    display:flex;
    justify-content: center;
    align-items: center;
    background-color:#708090;
}
.box-card {
    padding:20px;
  width: 480px;
}
.box-card h1{
    font-size:30px;
    line-height:40px;
}
</style>